<table width="100%" cellpadding="0" cellspacing="0">
	<tbody>
		<tr bgcolor="#F0F0F0">
		  <td height="40" colspan="2"><h3 style="margin-left:5px">All Projects:&nbsp;<?=$this->projectData['pname']?>&nbsp;<font size="1">(Key: &nbsp;<?=$this->projectData['pkey']?>)</font></h3></td>
		</tr>
		<tr>
			<td width="70%" valign="top" nowrap="nowrap">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td>
							<div><b>Project Lead:&nbsp;</b>&nbsp;<?=$this->projectData['lead']?></div>
							<div><b>URL:</b><a href="<?=$this->projectData['url']?>"><?=$this->projectData['url']?></a></div>
							<div><b>Description:</b></div>
							<div><?=$this->projectData['description']?></div>
							<br>
							<?php if ($this->acl->isAllowed($this->userGroup, null, "createissue")) {?>
							<div>
								<img src="<?=$this->baseUrl()/images/bullet.gif?>" border="0" width="8" height="8" /><a href="<?=$this->baseUrl()?>/issue/createstep1/project/<?=$this->projectId?>">Create new issue in project <?=$this->projectData['pname']?></a>
							</div>
							<?php }?>
							<?php if ($this->acl->isAllowed($this->userGroup, null, "admin")) {?>
							<div><img src="<?=$this->baseUrl()/images/bullet.gif?>" border="0" width="8" height="8" /><a href="<?=$this->baseUrl()?>/project">Administor Project</a></div>
							<?php }?>
						</td>
					</tr>
				</table>
				<br>
				<table width="98%" cellspacing="0" cellpadding="0" align="center">
				<tbody>
					<tr>
						<td>
							<table align="center" border="0" cellpadding="2" cellspacing="0" width="100%" style="border:0px">
								<tbody>
									<tr>
										<td width="1%"><b>Select:</b>&nbsp;</td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/issue/openissues/pid/<?=$this->projectId?>">Open Issues</a></b></td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/issue/roadmap/project/<?=$this->projectId?>">Road Map</a></b></td>
										<td align="center" width="10%"><b>Change Log</b></td>
										<td align="center" width="10%"><b>Popular Issues</b></td>
										<td align="center" width="10%"><b><a href="<?=$this->baseUrl()?>/issue/versions/projectId/<?=$this->projectId?>">Versions</a></b></td>
										<td align="center" bgcolor="#bbbbbb" nowrap="nowrap" width="10%">
												&nbsp;<font color="#ffffff"><b>Components</b></font>&nbsp;
										</td>
										<td width="1%">&nbsp;</td>
						
									</tr>
								</tbody>
							</table>
						</td>
				  </tr>
						<tr>
						<td colspan="2">
							<table width="100%" cellspacing="0" style="border:1px solid #bbbbbb">
								<tbody>
									<tr bgcolor="#bbbbbb">
									  <td bgcolor="#F0F0F0"><h2>Components</h2></td>
										<?php if ($this->acl->isAllowed($this->userGroup, null, "admin")) {?>
										<td align="right" bgcolor="#F0F0F0"><a href="">Add New Component</a>&nbsp;
										</td>
										<?php }?>
									</tr>
									<tr>
										<td colspan="2">
											<table width="100%" cellspacing="0">
												<tbody>
													<?php
														$i = 1; 
														foreach ($this->components as $component) {?>
													<tr>
														<td><div><img src="<?=$this->baseUrl()?>/images/component.gif" border="0"/><a href="<?=$this->baseUrl()?>/issue/manage/cid/<?=$component['id']?>">&nbsp;<?=$component['cname']?></a>
														</div>
														</td>
													</tr>
													<tr>	
														<td>&nbsp;<?=$component['description']?></td>
													<tr>
													<?php  
														$i++;
													}?>
												<tbody>
											</table>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			  </table>
			</td>
		  <td width="30%" valign="top" style="background-color:#fffff0;border:1px solid #bbbbbb"><table width="90%" align="center" cellspacing="1">
            <tr>
              <td colspan="2"><h3 style="margin-left:10px;color:#003366;">Preset Filters</h3></td>
            </tr>
            <tr>
              <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>">All</a></td>
              <td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/resolved/-1w">Resolved Recently</a></td>
            </tr>
            <tr>
              <td width="50%" align="left">Outstanding</td>
              <td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/created/-1w">Added Recently</a></td>
            </tr>
            <tr>
              <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/fixfor/-1">Unscheduled</a></td>
              <td><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/updated/-1w">Updated Recently</a></td>
            </tr>
            <tr>
              <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/assigneeSelect/issue_current_user">Assign to me</a></td>
              <td>Most Important</td>
            </tr>
            <tr>
              <td width="50%" align="left"><a href="<?=$this->baseUrl()?>/filter/view/projectId/<?=$this->projectId?>/reporterSelect/issue_current_user">Reported by me</a></td>
              <td>&nbsp;</td>
            </tr>
          </table>
		  <h3 style="margin-left:10px;color:#003366;">Project Summary</h3>
			<table width="90%" align="center" cellpadding="0" cellspacing="0">
              <tbody>
			  <?php foreach ($this->projectSummary as $summary) {?>
                <tr>
                  <td width="1%"><img src="<?=$this->baseUrl().$summary['issueStatusIcon']?>" align="absmiddle" title="<?=$summary['issueStatusName']?>"/></td>
                  <td nowrap="">&nbsp;
                      <?=$summary['issueStatusName']?></td>
                  <td><?=$summary['c']?></td>
                  <td width="60%"><table width="100%" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="<?=round($summary['c']/$this->totalIssues*100)?>%"><table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                              <td bgcolor="#3c78b5"><a title="22"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a> </td>
                            </tr>
                        </table></td>
                        <td width="<?php echo (98-round($summary['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;
                            <?=round($summary['c']/$this->totalIssues*100)?>
                          %</td>
                      </tr>
                  </table></td>
                </tr>
				<?php } ?>
              </tbody>
            </table>
			<h3 style="margin-left:10px;color:#003366;">Open Issues</h3>
		    <h4>By Priority</h4>	
			  <table width="90%" align="center" cellpadding="0" cellspacing="0">
                <tbody>
                  <?php foreach ($this->openIssues as $issue) { ?>
				  <tr>
                    <td width="1%"><img src="<?=$this->baseUrl().$issue['priorityIcon']?>" align="absmiddle" /></td>
                    <td nowrap="">&nbsp;
                        <?=$issue['priority']?></td>
                    <td><?=$issue['c']?></td>
                    <td width="60%">
							<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
							  <td width="<?=round($issue['c']/$this->totalIssues*100)?>"><table cellpadding="0" cellspacing="0" width="100%">
								  <tr>
									<td bgcolor="#3c78b5"><a title="2"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a> </td>
								  </tr>
							  </table>
						  </td>
                          <td width="<?php echo (100-round($issue['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;
                              <?=round($issue['c']/$this->totalIssues*100)?>
                            %</td>
                        </tr>
                    </table>
					</td>
                  </tr>
				  <?php } ?>
                </tbody>
              </table>
			 <h4>By Assignee </h4>
			  <table width="90%" align="center" cellpadding="1" cellspacing="0" border="0">
                <tbody>
				<?php foreach ($this->openIssuesByAssignee as $issue) { ?>
                  <tr>
                    <td nowrap>
                        <?=$issue['assignee']?>
					</td>
                    <td><?=$issue['c']?></td>
                    <td width="60%">
							<table width="100%" cellpadding="0" cellspacing="0">
							<tr>
							  <td width="<?=round($issue['c']/$this->totalIssues*100)?>"><table cellpadding="0" cellspacing="0" width="100%">
								  <tr>
									<td bgcolor="#3c78b5"><a title="2"><img src="<?=$this->baseUrl()?>/images/spacer.gif" width="100%" height="10"></a> </td>
								  </tr>
							  </table>
						  </td>
                          <td width="<?php echo (100-round($issue['c']/$this->totalIssues*100))?>">&nbsp;&nbsp;&nbsp;
                              <?=round($issue['c']/$this->totalIssues*100)?>
                            %</td>
                        </tr>
                    </table>
					</td>
                  </tr>
				  <?php }?>
                </tbody>
              </table>
		  </td>
		</tr>
	</tbody>
</table>